<?php

namespace Modules\Shop\Database\factories;

use Arr;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * 栏目
 * @package Modules\Shop\Database\factories
 */
class CategoryFactory extends Factory
{
    protected $model = \Modules\Shop\Entities\Category::class;

    public function definition()
    {
        return [
            'title' => $this->faker->name(),
            'site_id' => 1,
            'preview' => image_random(),
            'is_commend' => Arr::random([true, false])
        ];
    }
}
